package model

import "database/sql"

type HelpdeskTicket struct {
	ResCommon
	Name         string        `json:"name"`
	TeamId       int64         `json:"team_id"`
	PartnerId    int64         `json:"partner_id"`
	PartnerName  string        `json:"partner_name"`
	UserId       int64         `json:"user_id"`
	TicketTypeId sql.NullInt64 `json:"ticket_type_id"`
	TicketType   HelpdeskTicketType
	PartnerPhone string `json:"partner_phone"`
	PartnerEmail string `json:"partner_email"`
	Description  string `json:"description"`
	Active       bool   `json:"active" gorm:"default:true"`
	StageId      int64  `json:"stage_id"`
	Stage        HelpdeskStage
	KanbanState  string `json:"kanban_state" gorm:"default:normal"`
}

type HelpdeskTicketType struct {
	ResCommon
	Name     string `json:"name"`
	Sequence int64  `json:"sequence"`
}
type HelpdeskStage struct {
	ResCommon
	Active   bool   `json:"active"`
	Name     string `json:"name"`
	Sequence int    `json:"sequence"`
}
